In here are the list of things I did for a particular hour or day. Also included here are the screenshots of games I played, or videos I watched or listened to, or just random things I stumbled upon. I'll occasionally write down what I'm thinking, or things I'm planning to do.
So I decided to try making a web application with go and the lua template. After all, that was the original reason why I made moon-temple: so I could have an alternative templating engine text/template that comes with golang.
I've done some playing around with gopher-lua, and I managed to run html.lua. There's one problem though: I want the binaries self-contained as usual, so I needed to use embed.FS. Naturally, gopher-lua doesn't know how to load files from my embedded filesystem, and skimming through the docs, it appears there's no built-in support for doing that.
The first workaround I tried is to just extract the embedded files into the current directory if they are newer or doesn't exist. But strangely, running Stat() on the embedded files always return a 0 timestamp.
The second workaround I'm considering is writing a custom package.loader for lua. I found an example that I could use. Crazy enough, that example shows how I could even extend lua's syntax!? Imagine I could even go further with my DSL madness AHAHA. Or not, the editor LSP would start cussing at me if I did that. Pretty neat stuffs though.
Right now, I'm wondering if I should do some maintenance work on moon temple. Tasks like refactoring, cleaning up, add do some proper releases, that kind of stuffs.
Or I could start a new project. I want to try html.lua with a golang backend, and webui as the frontend. Then try htmz for general frontend/backend interaction.
Or not, I should invest more time creating stuffs with godot and blender.
This early afternoon, I gave the six younger puppies, and the 2 adult puppies, a bath. Not much else to say about it, except that it's quite tiring to do, so I really should avoid doing it all at once.
There, I finished my shitty youtube UI. Basically, it's just a youtube player but with a countdown timer. The purpose of this is so I could listen to longer youtube videos without draining my phone battery.
I always listen to youtube before going to sleep, it really helps me fall asleep faster, it keeps me from thinking a bunch of things that keep me awake.
I continued reading "calculus: an infinitesimal approach". I'm still following so far, but I don't quite get the increment theorem. For starters, why would ∆y be infinitesimal? If the book is referring to ∆y in the equation
∆y = f(x+∆x) - f(x)
then I don't see how ∆y would be necessarily be infinitesimal. I could think of really weird curves where ∆y wouldn't be infinitesimal based on that equation.
Of course, it's actually referring to a different(?) ∆y, the book is saying the ∆y in the equation
∆y = f'(x)∆x + ε∆x
is an infinitesimal. Or not. There's actually a proper definition and explanation in the following pages.
What I've learned just now:
site last updated on 2024-10-16 | created with moontpl